Take desktop panels into account when sizing frames so they fit on the screen.
authorJan D. <jan.h.d@swipnet.se>
Fri, 15 Jan 2010 17:05:04 +0000 (18:05 +0100)
committerJan D. <jan.h.d@swipnet.se>
Fri, 15 Jan 2010 17:05:04 +0000 (18:05 +0100)
commit1af94bf7f39196a96928fbe8c7a4c530c036d6ab
tree9e274de2f72f1c60b423a96f93f0a96d4e455dc4
parent3dd5bb005d7202f4a157de652a514e26743c8b49
parent3dcf06e70a1792cbd69d8eae5e433352d3962560
Take desktop panels into account when sizing frames so they fit on the screen.

xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
(Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
to find out usable size of the desktop.  Don't make frames larger than
this. Bug #3643.